<?php

namespace App\HttpController\XAppWxapp\WxappXK\Web;


use App\HttpController\ControllerWxApp;
use App\Model\t_wx_user_a_xf;


class api extends ControllerWxApp
{
    /**
     * @return t_wx_user_a_xf
     * @throws \EasySwoole\Mysqli\Exceptions\ConnectFail
     * @throws \EasySwoole\Mysqli\Exceptions\PrepareQueryFail
     * @throws \Throwable
     */
    function funcGetWxUserxf()
    {
        $entity = $this->context()->get(__METHOD__);
        if ($entity === null)
        {
            $entity = t_wx_user_a_xf::funcLoad($this->db(), $this->getUserID());
            $this->context()->set(__METHOD__, $entity);
        }

        return $entity;
    }


    public function index()
    {
//        $this->commonR()->setData();
        $this->funcWriteCommonR();
    }
}